﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CommLib.BdPush
{
    /// <summary>
    /// 作者：冼树华
    /// QQ：56472465
    /// 日期：20150-04-29
    /// 功能：向当前app下所有设备推送一条消息
    /// </summary>
    public sealed class Push_All : Baidu_Send
    {
        
        #region 构造函数
        public Push_All(string secret_key, Baidu_Mod mod)
        {
            this.httpMehtod = Baidu_Helper.HTTP_POST;
            this.url = Baidu_Helper.BASE_URL+ Baidu_Helper.PUSH_ALL;
            this.secret_key = secret_key;
            this.mod = mod;
        }
        public Push_All(string httpMehtod, string secret_key, Baidu_Mod mod)
        {
            this.httpMehtod = httpMehtod;
            this.url = Baidu_Helper.BASE_URL+ Baidu_Helper.PUSH_ALL;
            this.secret_key = secret_key;
            this.mod = mod;
        }
        #endregion

       
    }

    /// <summary>
    /// 作者：闲人工作室 Freeman
    /// QQ：15832782
    /// 日期：2016-05-03
    /// </summary>
    public sealed class Push_All_With_Response : Baidu_Send<Push_All_Response>
    {

        #region 构造函数
        public Push_All_With_Response(string secret_key, Baidu_Mod mod)
        {
            this.httpMehtod = Baidu_Helper.HTTP_POST;
            this.url = Baidu_Helper.BASE_URL + Baidu_Helper.PUSH_ALL;
            this.secret_key = secret_key;
            this.mod = mod;
        }
        public Push_All_With_Response(string httpMehtod, string secret_key, Baidu_Mod mod)
        {
            this.httpMehtod = httpMehtod;
            this.url = Baidu_Helper.BASE_URL + Baidu_Helper.PUSH_ALL;
            this.secret_key = secret_key;
            this.mod = mod;
        }
        #endregion


    }
}
